<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Telephone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-telephone" class="form-control" name="row[telephone]" type="text" value="{$row.telephone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
	    <label for="c-avatar" class="control-label col-xs-12 col-sm-2">头像:(正方形)</label>
	    <div class="col-xs-12 col-sm-8">
	        <div class="input-group">
	            <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
	            <div class="input-group-addon no-border no-padding">
	                <span><button type="button" id="faupload-avatar" class="btn btn-danger faupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> 上传</button></span>
	                <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
	            </div>
	            <span class="msg-box n-right" for="c-avatar"></span>
	        </div>
	        <ul class="row list-inline faupload-preview" id="p-avatar"></ul>
	    </div>
	</div>
	<div class="form-group">
	    <label for="c-avatar_big" class="control-label col-xs-12 col-sm-2">简介图片:(长方形)</label>
	    <div class="col-xs-12 col-sm-8">
	        <div class="input-group">
	            <input id="c-avatar_big" data-rule="" class="form-control" size="50" name="row[avatar_big]" type="text" value="{$row.avatar_big}">
	            <div class="input-group-addon no-border no-padding">
	                <span><button type="button" id="faupload-avatar_big" class="btn btn-danger faupload" data-input-id="c-avatar_big" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar_big"><i class="fa fa-upload"></i> 上传</button></span>
	                <span><button type="button" id="fachoose-avatar_big" class="btn btn-primary fachoose" data-input-id="c-avatar_big" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> 选择</button></span>
	            </div>
	            <span class="msg-box n-right" for="c-avatar_big"></span>
	        </div>
	        <ul class="row list-inline faupload-preview" id="p-avatar_big"></ul>
	    </div>
	</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control editor " rows="5" name="row[description]" cols="50">{$row.description|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Updated_at')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-updated_at" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[updated_at]" type="text" value="{$row.updated_at}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Created_at')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-created_at" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[created_at]" type="text" value="{$row.created_at}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
